<html>

<head>
    <title>新的周报</title>
    <style type="text/css">
        table.gradienttable {
            font-family: verdana, arial, sans-serif;
            border-width: 3px;
            border-collapse: collapse;
            width: 100%;
        }
        
        table.gradienttable th {
            padding: 3px;
            color: #FFFFFF;
            background: #000066;
            font-size: 12px;
        }
        
        table.gradienttable td {
            padding: 3px;
            color: #000000;
            font-size: 11px;
            background: #ebecda;
            text-align: center;
        }
        
        table.gradienttable th p {
            margin: 3px;
            padding: 9px;
        }
        
        table.gradienttable td p {
            padding: 9px;
        }
        input {
            line-height: 2em;
            font-size:1.5em;
        }
        label {
            line-height: 2em;
            font-size:1.5em;
        }
    </style>
    <style>

    </style>

    <script>
        function openWeekSummary() {
            // 获取日期选择控件的值
            var date = document.getElementById('mydate').value;

            // 构建目标URL
            var url = '/task/weeksummary?date=' + encodeURIComponent(date);

            // 打开新窗口
            window.open(url, '_blank');
        }

        function refreshFeishu() {
            var selectedMan = document.querySelector('input[name="man"]:checked').value;
            var url = '/task/feishu?man=' + encodeURIComponent(selectedMan);
            window.location.href = url;
        }

        function refreshTapd() {
            var selectedMan = document.querySelector('input[name="man"]:checked').value;
            var url = '/task/tapdtask?man=' + encodeURIComponent(selectedMan);
            window.location.href = url;
        }


        
        function check() {
            // 获取日期选择控件的值
            var date = document.getElementById('mydate').value;

            // 构建目标URL
            var url = '/task/check?date=' + encodeURIComponent(date) + '&force=true';
            window.location.href = url;
        }
    </script>
</head>

<body>
    <div style="width:100%;margin-left:auto;margin-right:auto;">
        
        <div style="text-align:right;font-size:2em;width:35em;margin-left:auto;margin-right:auto;">
            <form action="/devreport/save" method="post" style="text-align:left;width:35em;margin-left:auto;margin-right:auto;">
                <table style="width:35em;margin-left:auto;margin-right:auto;">
                    <tr>
                        <td style="width:10em;line-height: 0em;">&nbsp;</td>
                        <td style="width:20em;line-height: 0em;">&nbsp;</td>
                    </tr>
                    
                    <tr>
                        <td style="text-align:right;">开始时间</td>
                        <td style="text-align: left;">
                            <input type="datetime-local" id="xBeginTime" name="beginTime" value="" required style="">
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:right;">结束时间</td>
                        <td style="text-align: left;">
                            <input type="datetime-local" id="xEndTime" name="endTime" value="" required style="">
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:right;">紧急任务分配截止时间</td>
                        <td style="text-align: left;">
                            <input type="datetime-local" id="xEmergencyDeadline" name="deadline" value="" required style="">
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:right;">天数</td>
                        <td style="text-align: left;">
                            <input type="number" name="dayCnt" value="6" style="width:100%;"></input>
                        </td>
                    </tr>
                    
                    <tr>
                        <td style="text-align:right;">应产出工时</td>
                        <td style="text-align: left;">
                            <input type="number" name="hour" value="54" style="width:100%"></input>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:right;">周开发成本</td>
                        <td style="text-align: left;">
                            <input type="number" name="cost" style="width:100%"></input>
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:right;"></td>
                        <td style="text-align: right;"> <button type="submit" style="height:3em;width:7em;">提交</button>&nbsp;</td>
                    </tr>
                </table>

                <script>
                    // 设置日期输入框的默认值为当天日期
                    document.getElementById('xBeginTime').value = '#date(begintime,"yyyy-MM-dd HH:mm")';
                    document.getElementById('xEndTime').value = '#date(endtime,"yyyy-MM-dd HH:mm")';
                    document.getElementById('xEmergencyDeadline').value = '#date(xEmergencyDeadline,"yyyy-MM-dd HH:mm")';
                </script>
            </form>

        </div>
    </div>
</body>
</html>